// SGJ Apps Bible Input Method (BibleIM).  A collection
// of Java InputMethods enabling the easy typing of Biblical scripts.
// Copyright (C) 2007-2008 Steffen G. Jenkins  

// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

/*
 * SingleKeyPanel.java
 *
 * Created on 06 September 2007, 20:24
 */

package uk.org.sgj.BibleIM;

import java.awt.Color;
import java.awt.Dimension;

/**
 *
 * @author  Steffen
 */
public class SingleKeyPanelExtra extends javax.swing.JPanel
{
    /** Creates new form SingleKeyPanel */
    
    public SingleKeyPanelExtra(String name, int width)
    {
        initComponents();
        sampleTextArea1.setText(name);
        sampleTextArea1.setColumns(name.length());
        setPreferredSize(new Dimension(((width*SingleKeyPanel.stdWidth)/20), SingleKeyPanel.stdHeight));
        setMinimumSize(new Dimension(((width*SingleKeyPanel.stdWidth)/20), SingleKeyPanel.stdHeight));
        sampleTextArea1.setForeground(Color.BLUE);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents()
    {
        sampleTextArea1 = new javax.swing.JTextArea();

        setLayout(new java.awt.BorderLayout());

        setBorder(javax.swing.BorderFactory.createEtchedBorder());
        sampleTextArea1.setColumns(2);
        sampleTextArea1.setEditable(false);
        sampleTextArea1.setFont(new java.awt.Font("SansSerif", 0, 18));
        sampleTextArea1.setRows(2);
        sampleTextArea1.setAutoscrolls(false);
        sampleTextArea1.setMargin(new java.awt.Insets(0, 0, 0, 0));
        sampleTextArea1.setMinimumSize(new java.awt.Dimension(20, 30));
        sampleTextArea1.setVerifyInputWhenFocusTarget(false);
        add(sampleTextArea1, java.awt.BorderLayout.CENTER);

    }// </editor-fold>//GEN-END:initComponents
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextArea sampleTextArea1;
    // End of variables declaration//GEN-END:variables
    
}
